-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ICS20 Transfer v2 message #2102
base: main
Are you sure you want to change the base?
Conversation
61661b9
to
dbc5a20
Compare
dbc5a20
to
e1c44e8
Compare
f05e87e
to
d925bbc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Could you add a new test case to TestEncodeIbcMsg
?
Also, of course we need to wait for the wasmvm release to merge to main.
Maybe we should setup a development branch here and in wasmvm for this and eureka?
github.com/CosmWasm/wasmvm/v2 v2.2.2-0.20250127092931-0322ca5cbd27 h1:E7YmMpKjj3wHvtxCesEoCNcg7ft502+U+QSUycqvkDM= | ||
github.com/CosmWasm/wasmvm/v2 v2.2.2-0.20250127092931-0322ca5cbd27/go.mod h1:bMhLQL4Yp9CzJi9A83aR7VO9wockOsSlZbT4ztOl6bg= | ||
github.com/CosmWasm/wasmvm/v2 v2.2.2-0.20250129191107-3c641d99ee15 h1:Bjd0MInujGk6AvWbjDnyCqCJh5UCAzRu7qqfuO+x7fI= | ||
github.com/CosmWasm/wasmvm/v2 v2.2.2-0.20250129191107-3c641d99ee15/go.mod h1:bMhLQL4Yp9CzJi9A83aR7VO9wockOsSlZbT4ztOl6bg= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a go mod tidy
, but that can wait until the actual wasmvm release is ready.
tokens := []sdk.Coin{} | ||
for _, token := range msg.TransferV2.Tokens { | ||
coin, err := ConvertWasmCoinToSdkCoin(token) | ||
if err != nil { | ||
return nil, errorsmod.Wrap(err, "amount") | ||
} | ||
tokens = append(tokens, coin) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to use ConvertWasmCoinsToSdkCoins
here?
No description provided.